<script setup>
import { useCounterStore } from '@/store/counter.js'
const counterStore = useCounterStore()
</script>

<template>
  <div class="footer">
        <span>{{counterStore.sum}}item left</span>
        <span @click="counterStore.all">All</span>
        <span @click="counterStore.check">Active</span>
        <span @click="counterStore.checked">Completed</span>
        <span @click="counterStore.check">clear</span>
      </div>
</template>
<style scoped>
.footer {
  font-size: 14px;
  position: absolute;
  bottom: 0;
  width: 80%;
  justify-content: space-between;
  display: flex;
  height: 40px;
  align-items: center;
}
</style>
